import { reactive, computed } from "vue";
import { useCool, useStore } from "/@/cool";
const { router, service, mitt } = useCool();
const { user } = useStore()

const priceMixin = (value?: any | {
    isInit: true
}) => {

    const priceData = reactive<any>({
        isInit: value?.isInit === false ? false : true
    })

    priceData.isInit && user.get()

    const oldAge = computed((a: any) => {
        return user.info?.oldAge ?? false;
    });

    function getRealPrice(priceKey: any, oldPriceKey: any) {
        return 
    }

    return {
        oldAge,
    };
}

export default priceMixin